import Vue from "vue";
import Vuex from "vuex";
import createPersistedState from "vuex-persistedstate";
import login from "./login.js";
import user from "./user.js";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  modules: {
    login,user
  },
  plugins: [createPersistedState({ key: "portal-vuex" })]
});
